<?php

class ReportesController extends AppController {

    public $components = array('Paginator');
    public $uses = array('Movimiento', 'User', 'Parametro');
    public $layout = 'sib';

    public function index() {
        $this->Movimiento->recursive = 0;
        $this->set('movimientos', $this->Paginator->paginate());
    }

    public function reportpagos() {
        
      
        $estado = $this->Movimiento->find('all', array(
            'recursive' => -1,
            'conditions' => array(
                'Movimiento.estado' => 'Pagado',
                
            ),
        ));
        
        $this->set(compact('estado'));
    }

    
}

?>
